package com.tianji.learning.entity.data;

import com.tianji.learning.entity.po.LearningRecord;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 存入缓存的数据结构
 */

@Data
@NoArgsConstructor
public class RecordCacheData {
    // 学习记录id
    private Long id;
    // 课程进度
    private Integer moment;
    private Boolean finished;

    public RecordCacheData(LearningRecord record) {
        this.id = record.getId();
        this.moment = record.getMoment();
        this.finished = record.getFinished();
    }
}